package com.ruan.openfeign;

import com.ruan.pojo.Goods;
import org.springframework.stereotype.Component;

/**
 * @ClassName:GoodsCenterOpenfeignFallBack
 * @Author:阮昇
 * @Description:
 * @Datetime: 2023/6/20 17:28
 **/
@Component
public class GoodsCenterOpenfeignFallBack implements GoodsCenterOpenfeign{
    @Override
    public Goods getGoodsById(Integer id) {
        Goods goods = new Goods();
        goods.setGoodsName("默认商品");
        return goods;
    }
}
